#include"Heap.h"
void test()
{
    //测试
	HP php;
	//每次插入并打印
	HPInit(&php);
	HPPush(&php, 5);
	HPPrint(&php);
	HPPush(&php, 3);
	HPPrint(&php);
	HPPush(&php, 2);
	HPPrint(&php);
	HPPush(&php, 7);
	HPPrint(&php);
	HPPush(&php, 4);
	HPPrint(&php);
	HPPush(&php, 1);
	HPPrint(&php);
	HPPush(&php, 6);
	HPPrint(&php);
	HPPush(&php, 8);
	HPPrint(&php);
	HPPush(&php, 9);
	HPPrint(&php);
	HPPush(&php, 10);
	HPPrint(&php);
	//每次删除并打印
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPPop(&php);
	HPPrint(&php);
	HPDestory(&php);
}
int main()
{
	test();
	return 0;
}